package com.gzx.plugin.tjzy.modular.company.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.modular.company.entity.GzxCompany;
import com.gzx.plugin.tjzy.modular.company.mapper.GzxCompanyMapper;
import com.gzx.plugin.tjzy.modular.company.service.GzxCompanyListService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/1/21 08:57
 */
@Service
@RequiredArgsConstructor
public class GzxCompanyListServiceImpl implements GzxCompanyListService {

    private final GzxCompanyMapper companyMapper;

    /**
     * 获取所有公司
     *
     * @return
     */
    @Override
    @DS("tjzy")
    public List<GzxCompany> getList() {
        return companyMapper.selectList();
    }
}
